package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type UserProfile struct {
	Uid           int     `json:"uid" gorm:"primaryKey"`    //int(11) NOT NULL
	Age           int     `json:"age"`                      //int(3) DEFAULT '22'
	Gender        int     `gorm:"column:gender" json:"sex"` //int(1) DEFAULT '0' COMMENT 0=未知，1=男，2=女
	Career        string  `json:"career"`                   //varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '职业'
	Height        int     `json:"height"`                   //int(3) DEFAULT '0' COMMENT '身高 cm'
	Weight        int     `json:"weight"`                   //int(10) DEFAULT '0' COMMENT '体重 kg'
	City          string  `json:"city"`                     //varchar(255) CHARACTER SET utf8mb4 DEFAULT ''
	Birthday      string  `json:"birthday"`                 //varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '生日'
	Constellation string  `json:"constellation"`            //varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '星座'
	Signature     string  `json:"signature"`                //varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '个性签名'
	Photos        *string `json:"photos"`                   //text COMMENT '照片墙'
}

func (UserProfile) TableName() string {
	return fmt.Sprintf("%suser_profile", models.Prefix)
}
